package io.gitee.mingbaobaba.apijson.querycondition.query.conditions;

/**
 * <p>执行计划片段</p>
 */
class ExplainSegment implements DslSegment {

    @Override
    public void apply(AbstractBaseWrapper<?, ?, ?> wrapper) {
        if (Boolean.TRUE.equals(wrapper.explain)) {
            wrapper.apiJsonParams.put(EnumApiJson.EXPLAIN.getCode(), true);
        }
    }
}

